import request from '@/utils/request';

interface FormDataType {
  [propName: string]: any;
}

const $http = (path: string, params: FormDataType, type: string = 'POST') => {
  if (type === 'POST') {
    return request(path, { method: type, data: params });
  }
  if (type === 'GET') {
    return request(path, { method: type, params });
  }
  return '';
};

// 站内信收件箱--列表
export const feedbackRecordList = (params: FormDataType) =>
  $http('/gl/feedback/record/manage/list', params);
// 站内信类别--列表
export const feedbackTypeList = (params: FormDataType) =>
  $http('/gl/feedback/type/manage/list', params);
